export default {
  computed: {
    allApprover() { // 获取流程所有审批人
      let processList = [];
      if (this.auditScheduleData && this.auditScheduleData.process) {
        processList = this.auditScheduleData.process;
      }
      const allExamineUserList = [];
      processList.forEach((process, index) => {
        if ((process.nodeName === '任务发起' && index === 0) || process.nodeType === 3) {
          return;
        }
        process.examineRoles.forEach((item) => {
          item.aduitors.forEach((j) => {
            if (!allExamineUserList.find(i => i.id === j.id)) {
              allExamineUserList.push(j);
            }
          });
        });
      });
      return allExamineUserList;
    }
  }
};
